import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [



  {
    path: '/pagehome',
    name: 'pagehome',
    component: () => import(/* webpackChunkName: "about" */ '../views/back/pagehome'),
    redirect:'nullpage',
    children:[
      {
        path: '/nullpage',
        name: 'nullpage',
        component:()=> import('../views/back/nullpage')
      },
      {
        path: '/memberguanli',
        name: 'Memberguanli',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/member/memberguanli')
      },{
        path: '/order/list',
        name: 'orderByClass',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/order/orderByClass')
      },
      {
        path: '/kechengshenhe',
        name: 'Kechengshenhe',
        component: () => import('../views/back/kecheng/kechengshenhe')
      },
      {
        path: '/fenleiguanli',
        name: 'Fenleiguanli',
        component: () => import('../views/back/kecheng/fenleiguanli')
      },
      {
        path: '/kechengmenu',
        name: 'Kechengmenu',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/kecheng/kechengmenu')
      },
      {
        path: '/k1',
        name: 'kechengzhongxin',
        component: () => import('../views/back/kecheng/kechengzhongxin')
      },
      {
        path: '/jslist',
        name: 'jslist',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/jiangshi/jslist'),
      },
      {
        path: '/jsshenhe',
        name: 'jsshenhe',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/jiangshi/jsshenhe'),
      },{
        path: '/top',
        name: 'top',
        component:()=> import('../views/back/homes/topdaohang')
      }
      ,{
        path: '/banner',
        name: 'banner',
        component:()=> import('../views/back/homes/lunbo')
      },{
        path: '/link',
        name: 'link',
        component:()=> import('../views/back/homes/link')
      },
      {
        path: '/preinct',
        name: 'preinct',
        component:()=> import('../views/back/homes/Preinct')
      },{
        path: '/article',
        name: 'article',
        component:()=> import('../views/back/homes/article')
      },
      {
        name: 'ment',
        path: '/ment',
        component:()=> import('../views/back/ment/ment')
      },
      {
        name: 'precou',
        path: '/precou',
        component:()=> import('../views/back/homes/precou')
      },
      {
        path: '/user',
        name: 'User',
        component:() => import('../views/back/system/user'),
      },
      {
        path: '/role',
        name: 'Role',
        component:() => import('../views/back/system/role'),
      },

      {
        path: '/order',
        name: 'orderByClass',
        component: () => import(/* webpackChunkName: "about" */ '../views/back/order/orderByClass')
      },{
        path: '/',
        name: 'backlogin',
        component:()=> import('../views/back/backlogin')
      },
      {
        path: '/t1',
        name: 'kechengtj',
        component:()=> import('../views/back/tongji/kechengtj')
      },
      {
        path: '/t2',
        name: 'tj1',
        component:()=> import('../views/back/tongji/tj1')
      },
      {
        path: '/menu',
        name: 'menu',
        component: () => import('../views/back/system/menu')
      }
    ]
  },
  {
  path: '/',
    name: 'backlogin',
    component:()=> import('../views/back/backlogin')
  }


]

const router = new VueRouter({
  routes
})

export default router
